<%@page import="java.util.UUID"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@page import="pojo.Customer"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册信息</title>
</head>
<body>
	<h1>注册信息</h1>
	<table >
		<c:forEach items = "${customers }" var = "uu">
			<tr>
			<td>${uu.getId()}
			</td>
			<td>${uu.getCname()}</td>
			<td>
			<c:if test="${uu.getSex()}">男</c:if>
			<c:if test="${!uu.getSex()}">女</c:if>
			</td>
			<td>
			<fmt:formatDate value="${uu.getBirth() }" pattern ="yyyy-MM-dd"/>
			</td>
			<td>
			<fmt:formatNumber value="${uu.getSal() }" pattern ="$##,###.00"/>
			</td>
			<td>
			<c:forEach items = "${uu.getFavs()}" var = "fav">
				"${fav}"
			</c:forEach>
			</td>
			</tr>
		</c:forEach>
	</table>
	<a href="delete.jsp"><button>删除</button></a>
	<a href="update.jsp"><button>更新</button></a>
	</body>
	</html>